package com.bzy.blade_auth.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.bzy.blade_auth.service.RoleService;
import com.bzy.bladeauthapi.entry.Role;
import com.bzy.bladeauthapi.fegin.RoleFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoleController implements RoleFeginClient {


    @Autowired
    private RoleService roleService;

    @Override
    public R add(Role role) {
        return roleService.add(role);
    }

    @Override
    public R uodate(Role role) {
        return roleService.uodate(role);
    }

    @Override
    public R delete(Role role) {
        return roleService.delete(role);
    }

    @Override
    public R selOne(Role role) {
        return roleService.selOne(role);
    }

    @Override
    public R selList(Role role) {
        return roleService.selList(role);
    }
}
